package com.example.rightmost.dao;

import com.example.rightmost.entity.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface CommentMapper {

    List<Comment> getCommentList(String texts);

    List<Comment> getCommentSonList(Comment comment);

    List<Comment> getCommentArea(Comment comment);

    int addComment(Comment comment);

    int addComment_2(Comment comment);

    List<Comment> getAllCommentSon(Integer pieceId);

    Integer delete(Integer commentId);

}
